package com.example.websocket.enums;

public enum ChatType {
    // 聊天类型
    // 单聊
    SINGLE(1, "single"),
    // 群聊
    GROUP(2, "group");

    private final int code;
    private final String name;

    ChatType(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
